package cn.xyhelp.shop.repository.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存进出记录表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("stock_io_record")
public class StockIoRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 库存单元编号
     */
    @TableField("stock_unit_id")
    private Integer stockUnitId;

    /**
     * 记录类型，进/出库，门店间调度
     */
    @TableField("type")
    private Integer type;

    /**
     * 进出库数量
     */
    @TableField("number")
    private Integer number;

    /**
     * 出库价格（单价）
     */
    @TableField("out_price")
    private Long outPrice;

    /**
     * 操作门店
     */
    @TableField("store_id")
    private Integer storeId;

    /**
     * 操作员工
     */
    @TableField("staff_id")
    private Integer staffId;


}
